#include <iostream>
#include <algorithm>
using namespace std;

typedef long long LL;

double a[7];
int T;

bool check(double x, double y, double z)
{
    return x + y > z && x + z > y && y + z > x;
}

int main()
{
    cin >> T;
    while(T--)
    {
        for(int i = 1; i <= 6; i++) cin >> a[i];
        sort(a + 1, a + 7);
        if(check(a[1], a[2], a[3]) && check(a[4], a[5], a[6])) cout << "Yes" << endl;
        else cout << "No" << endl;
    }
    return 0;
}
